/*
 * Copyright (c) 2024 Black Sesame Technologies
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef _DAL_RTICONNEXTDDS_DAL_DATAREADER_IMPL_HPP_
#define _DAL_RTICONNEXTDDS_DAL_DATAREADER_IMPL_HPP_

#include "ndds/ndds_c.h"
#include "dal/status.h"
#include "dal_rticonnextdds/utils/ReferenceCount.hpp"
#include "dal_rticonnextdds/listener_impl/DataReaderListenerImpl.hpp"

typedef struct DDS_SampleInfo DDS_SampleInfo;


class DalDataReaderImpl
{
public:
    explicit DalDataReaderImpl(DDS_DataReader *rti_reader, DataReaderListenerImpl* listener);
    ~DalDataReaderImpl();

    DDS_DataReader *RtiDataReader();

private:
    DataReaderListenerImpl* listener_ = nullptr;
    DDS_DataReader *rti_reader_ = nullptr;
};

#endif  // _DAL_RTICONNEXTDDS_DAL_DATAREADER_IMPL_HPP_
